package com.xxgc.zde.controller;

import com.xxgc.zde.controller.dto.UserLoginDTO;
import com.xxgc.zde.controller.vo.UserLoginVO;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/login")
@Tag(name = "用户登录接口")
public class UserLoginController {

    @Operation(summary = "获取登录信息")
    @GetMapping("/msg")
    public String msg() {
        return "成功编写了第一个接口";
    }

    @Operation(summary = "用户登录")
    @GetMapping("/userLogin")
    public UserLoginDTO userLogin(@RequestBody UserLoginVO userLoginVO){
        return null;
    }
}
